package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.ConditionsInfoMapper;
import com.ttg.model.mapper.PrimitiveBankInfoMapper;
import com.ttg.model.pojo.ConditionsInfo;
import com.ttg.model.pojo.PrimitiveBankInfo;
import com.ttg.web.dao.PrimitiveBankInfoDao;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/2/2 15:37
 */
@Service
public class PrimitiveBankInfoDaoImpl extends ServiceImpl<PrimitiveBankInfoMapper, PrimitiveBankInfo> implements PrimitiveBankInfoDao {

    @Override
    public List<PrimitiveBankInfo> getByCstId(String cstId) {
        LambdaQueryWrapper<PrimitiveBankInfo> lambdaQueryWrapper = new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(PrimitiveBankInfo::getCstId,cstId);
        return list(lambdaQueryWrapper);
    }
}
